package com.andaily.domain.dto.account;

import com.andaily.domain.shared.security.SecurityUtils;

import java.math.BigDecimal;

/**
 * @author Shengzhao Li
 */
public class AccountStatisticsDTO {

    //All available account total amount
    private BigDecimal allTotalAmount = BigDecimal.ZERO;
    //My self total amount(after logged)
    private BigDecimal myTotalAmount = BigDecimal.ZERO;

    public AccountStatisticsDTO() {
    }

    public BigDecimal getMyTotalAmount() {
        return myTotalAmount;
    }

    public void setMyTotalAmount(BigDecimal myTotalAmount) {
        this.myTotalAmount = myTotalAmount;
    }

    public BigDecimal getAllTotalAmount() {
        return allTotalAmount;
    }

    public void setAllTotalAmount(BigDecimal allTotalAmount) {
        this.allTotalAmount = allTotalAmount;
    }

    /**
     * Check current is logged or not
     *
     * @return True is logged,otherwise false
     */
    public boolean isLogged() {
        return SecurityUtils.isLogged();
    }
}
